package com.dlc.shop.seckill.common.constant;

/**
 * @author gaozijie
 * @date 2023-06-14
 */
public interface LockCacheNames {
    /**
     * 锁前缀
     */
    String LOCK_PREFIX = "redisson_lock:";

    /**
     * 秒杀库存更新锁前缀
     */
    String LOCK_SECKILL_STOCK_UPDATE_PREFIX = LOCK_PREFIX + "seckill_stock_update:";

    /**
     * 获取秒杀库存锁前缀
     */
    String LOCK_GET_SECKILL_STOCK_PREFIX = LOCK_PREFIX + "get_seckill_stock";

    /**
     * 进行秒杀库存分片锁定的信息，seckillSkuId
     */
    String LOCK_SECKILL_ZONE_PERFIX = LOCK_PREFIX + "seckill_zone:";
}
